Skip to content

Conversation

@trask
Copy link
Member

@trask trask commented Dec 22, 2024

Resolves #4596

@github-actions github-actions bot requested a review from theletterf December 22, 2024 23:27
@trask trask force-pushed the end-span-after-closing-scope branch from 6a6ab03 to fa3e9b6 Compare December 23, 2024 03:47
@trask trask marked this pull request as ready for review December 23, 2024 23:12
@trask trask requested a review from a team as a code owner December 23, 2024 23:12
}

Context context = instrumenter.start(parentContext, request);
if (httpRouteSupport.hasMappings()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect that it was deliberately added after filterChain.doFilter.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, reverted changes to these two files

}

Context context = instrumenter.start(parentContext, request);
if (httpRouteSupport.hasMappings()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect that it was deliberately added after filterChain.doFilter.

@trask trask merged commit 2ea27b2 into open-telemetry:main Dec 27, 2024
56 checks passed
@trask trask deleted the end-span-after-closing-scope branch December 27, 2024 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update instrumentation to always close scope before ending span

3 participants